// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

let db = cloud.database()

// 云函数入口函数
exports.main = async (event, context) => {
  return await db.collection('todos').doc('889dfecd5e72bf3c00025366391b1607').update({
    data:{
      time: 123,
      price: 321
    }
  })
}